package com.techsoul.common.core.pojo.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import java.io.Serializable;

/**
 * 操作日志 Vo
 * 
 * @author liuen
 * @date 2020-12-04
 */
@Data
@Accessors(chain = true)
public class OperationLogVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID（系统自动产生）")
    private String id;

    @ApiModelProperty("模块标题")
    private String title;

    @ApiModelProperty("操作类型（数据字典sys_operation_type）")
    private String operationType;

    @ApiModelProperty("方法名称")
    private String method;

    @ApiModelProperty("请求方式")
    private String requestMethod;

    @ApiModelProperty("操作人类别（数据字典sys_operator_type）")
    private String operatorType;

    @ApiModelProperty("操作人员")
    private String operatorName;

    @ApiModelProperty("组织机构id")
    private String orgId;

    @ApiModelProperty("组织机构名称")
    private String orgName;

    @ApiModelProperty("请求URL")
    private String url;

    @ApiModelProperty("主机地址")
    private String ip;

    @ApiModelProperty("操作地点")
    private String location;

    @ApiModelProperty("请求参数")
    private String param;

    @ApiModelProperty("返回参数")
    private String jsonResult;

    @ApiModelProperty("错误消息")
    private String errorMsg;

    @ApiModelProperty("操作状态，0-正常 1-异常")
    private String status;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("是否有效（数据字典sys_yn_type，默认1-是）")
    private String isValid;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty("更新人")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;


    @ApiModelProperty("创建人名称")
    private String createByName;

    @ApiModelProperty("更新人名称")
    private String updateByName;

}
